﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess_Layer;
using Business_Layer;

public partial class NNC_H_Default2 : System.Web.UI.Page
{
    TinTucNCC_BUS bus = new TinTucNCC_BUS();
    protected void Page_Load(object sender, EventArgs e)
    {
        Image1.Visible = true;
        TinTucNCC ds = bus.get( int.Parse( Request["ID"].ToString() ) );
       
            
            Label1.Text = ds.TieuDe;
            Label2.Text = ds.NoiDung;
            if (ds.Hinh == null)
            {
                Image1.Visible = false;
            }
            else
            {
                Image1.ImageUrl = ds.Hinh;
            }
            Label3.Text = "Người đăng tin:"+ ds.TenNCC;
        
    }
}